import service from "@/utils/request"
// 添加分类收藏
export const addCollection = (data) => {
    return service({
        method: 'post',
        url: '/api/v1/addCollectionRecommend',
        data
    })
}
//  删除分类收藏
export const removeCollection = (params) => {
    return service({
        method: 'delete',
        url: '/api/v1/removeCollectionRecommend',
        params
    })
}
// 判断是否已收藏
export const isCollection = (params) => {
    return service({
        method: 'get',
        url: '/api/v1/isUserCollect',
        params
    })
}